package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.dao.SysDictData;
import org.apache.ibatis.annotations.Select;

/**
 * 字典表 数据层
 * 
 * @author ruoyi
 */
public interface SysDictDataMapper extends BaseMapper<SysDictData>
{

    /**
     * 查询字典数据
     * 
     * @param typeId 字典类型
     * @return 字典数据
     */
    @Select("select count(1) from sys_dict_data where type_id=#{typeId}")
    public int countDictDataByType(String typeId);

}
